package com.tyk.bookstore.back.system.model.result;


import com.tyk.bookstore.back.common.core.model.result.ResultEnum;

/**
 * @author tyk
 * @description RoleResultEnum
 */
public enum RoleResultEnum implements ResultEnum {
    ROLE_NOT_FOUND(3_01_02_01, "角色不存在"),
    ROLE_NOT_FOUND_OR_DISABLED(3_01_02_02, "角色不存在或已被禁用"),
    ROLE_NAME_ALREADY_EXISTS(3_01_02_03, "角色名称已存在"),
    ROLE_CODE_ALREADY_EXISTS(3_01_02_04, "角色字符串已存在");

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.message;
    }


    RoleResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    private final Integer code;

    private final String message;
}
